#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define N 5

int main()
{
	int tmp = 0, i = 0;
	int A[N] = { 1,2,3,4,5 };
	int B[N] = { 5,4,3,2,1 };
	for ( i = 0; i < N; i++)
	{
		tmp = A[i];
		A[i] = B[i];
		B[i] = tmp;
	}
	printf("A:");
	for (i = 0; i < N; i++)
		printf("%d", A[i]);
	printf("\nB:");
	for (i = 0; i < N; i++)
		printf("%d", B[i]);
	return 0;
}


